package cn.venturesights.saber.mars.service;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class ScheduleTaskService {
    Logger logger = LoggerFactory.getLogger(getClass());

    @Scheduled(cron = "*/10 * * * * ?")
    private void schedulePrintLog() {
        long current = System.currentTimeMillis();
        logger.info("scheduling print log, current [{}]", current);
    }
}
